-- GENERATED SPELL FOR [Arcane Annihilator] --


function spell0_18856(pUnit, Event) --@Arcane Explosion,Self--
pUnit:FullCastSpellOnTarget(33860,pUnit)
pUnit:RegisterEvent('Sorts_18856', 1500, 1)
end

function spell1_18856(pUnit, Event) --@Suppression,Self--
pUnit:FullCastSpellOnTarget(35892,pUnit)
pUnit:RegisterEvent('Sorts_18856', 6000, 1)
end

function Sorts_18856(pUnit, Event)
local choix_sorts_18856 = math.random(0, 1)
if choix_sorts_18856 == 0 then
pUnit:RegisterEvent('spell0_18856', 1, 1)
end
if choix_sorts_18856 == 1 then
pUnit:RegisterEvent('spell1_18856', 1, 1)
end
end

function mob18856_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18856', math.random(1500, 3000), 1)
end

function mob18856_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18856_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18856_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18856, 1, 'mob18856_Action')
RegisterUnitEvent(18856, 2, 'mob18856_Leave')
RegisterUnitEvent(18856, 3, 'mob18856_Kill')
RegisterUnitEvent(18856, 4, 'mob18856_Die')
